package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
		array[4] = 7;
		array[5] = 3;
		array[6] = 3;
		array[7] = 7;
		array[8] = 3;
		array[9] = 9;
		
		int troika = 0;
		int semerka = 0;
		int devyatka = 0;
		
		for (int i = 0; i<10; i++){
			if (array[i]==3){
				troika++;
			}
			if (array[i]==7){
				semerka++;
			}
			if (array[i]==9){
				devyatka++;
			}
		}
		
		System.out.println("Number of 3: "+troika);
		System.out.println("Number of 7: "+semerka);
		System.out.println("Number of 9: "+devyatka);
	}
}
